package com.example.studentdemo.service;

import com.example.studentdemo.entity.Admin;
import com.example.studentdemo.entity.Account;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface AdminService {
    List<Admin> selectAll(Admin admin);

    Admin selectByUsername(String username);

    void add(Admin admin);

    void update(Admin admin);

    PageInfo<Admin> selectPage(Integer pageNum, Integer pageSize, Admin admin);

    void deleteById(Integer id);

    void deleteBatch(List<Admin> adminList);

    Admin selectById(Integer userId);

    Admin login(Account account);

    void updatePassword(Account account);
}